﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="roleManager.aspx.cs" Inherits="Backstage_Pages_sysmng_roleManager" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../css/common.css">
    <link href="../../css/pagination.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../css/main.css">
    <script type="text/javascript" src="../../js/jquery.min.js"></script>
    <script type="text/javascript" src="../../js/colResizable-1.3.min.js"></script>
    <script type="text/javascript" src="../../js/common.js"></script>
    <script type="text/javascript" src="../../js/commonjq.js"></script>
    <title>用户管理</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div id="search_bar">
                <div class="box">
                    <div class="box_border">
                        <div class="box_top"><b class="pl15"></b></div>
                    </div>
                </div>
            </div>
            <input type="button" class="btn btn82 btn_checked" value="全选" id="cbxSelAll" name="cbxSelAll" onclick="SelAllCbx()" style="margin-left:10px">
                <input type="button" name="cbxUnSelAll" id="cbxUnSelAll" class="btn btn82 btn_nochecked" value="取消" onclick="SelAllNoCbx()">
                <asp:Button ID="btnAdd" runat="server" Text="新增" class="btn btn82 btn_add" OnClick="btnAdd_Click" />
                <asp:Button ID="Button1" runat="server" Text="开/关" class="btn btn82 btn_config" OnClick="btndelete_Click"/>
            <div id="table" class="pl10 pr10">
                <div>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">

                        <tr>
                            <th class="wh10percent">选择</th>
                            <th class="wh10percent">编号</th>
                            <th class="wh50percent">角色名称</th>
                            <th class="wh10percent">状态</th>
                            <th class="wh20percent">操作</th>
                        </tr>

                        <tbody>
                            <asp:Repeater ID="rptList" runat="server">
                                <ItemTemplate>
                                    <tr class="tr">
                                        <td class="td_center"> 
                                            <input type="checkbox" id="ids" name="ids"  value="<%#Eval("RoleId")%>"/>
                                        </td>
                                        <td class="td_center"><%#Eval("RoleId")%></td>
                                        <td class="td_center"><%#Eval("RoleName")%></td>
                                        <td class="td_center"><%#getStatus(Eval("IsUsing"))%></td>
                                        <td class="td_center"><a href='roleAlter.aspx?id=<%#Eval("RoleId") %>'>修改角色信息</a> </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                    <%if (this.rptList.Items.Count == 0)
                      { %>
                    <div id="NoDataMsg" runat="server" class="divNoDataMsg">
                        <img src="../../images/alert.gif">
                        <strong style="color: #ff0000;" />找不到相关数据！</strong>
                    </div>
                    <%} %>

                    <webdiyer:AspNetPager ID="Pager" runat="server" CssClass="paginator" CustomInfoHTML="共&nbsp;%RecordCount%&nbsp;条记录，%PageSize%&nbsp;条/页，当前&nbsp;%CurrentPageIndex%/%PageCount%&nbsp;页"
                        CustomInfoTextAlign="Right" FirstPageText="首页" LastPageText="尾页"
                        NextPageText="下一页" OnPageChanged="Pager_PageChanged" PrevPageText="上一页"
                        ShowCustomInfoSection="Right" ShowPageIndexBox="Always" SubmitButtonText="查看"
                        LayoutType="Table" Width="98%" CustomInfoClass="paginator" TextAfterPageIndexBox="页&amp;nbsp;"
                        TextBeforePageIndexBox="转到&amp;nbsp;&amp;nbsp;" ReverseUrlPageIndex="True" UrlPaging="False">
                    </webdiyer:AspNetPager>

                </div>
            </div>
        </div>
    </form>
</body>
</html>